package com.xbongbong.pro.opportunity.pojo;

import com.xbongbong.paas.domain.entity.PaasStageEntity;
import com.xbongbong.paas.domain.entity.StageLogEntity;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class JudgeStageChangedPojo extends Entity {

    private static final long serialVersionUID = -6715423373493170550L;

    /**
     * 目标阶段：跳入阶段
     */
    private PaasStageEntity targetStage;
    /**
     * 来源阶段：跳出阶段
     */
    private PaasStageEntity sourceStage;
    /**
     * 目标阶段名称
     */
    private String targetStageName;
    /**
     * 来源阶段名称
     */
    private String sourceStageName;
    /**
     * 阶段是否发生变更
     */
    private Boolean isStageChanged;
    /**
     * 当前阶段记录
     */
    private StageLogEntity sourceStageLog;

    public JudgeStageChangedPojo(PaasStageEntity targetStage, PaasStageEntity sourceStage, Boolean isStageChanged, StageLogEntity sourceStageLog) {
        this.targetStage = targetStage;
        this.sourceStage = sourceStage;
        this.isStageChanged = isStageChanged;
        this.sourceStageLog = sourceStageLog;
    }

    public JudgeStageChangedPojo(PaasStageEntity targetStage, PaasStageEntity sourceStage, String targetStageName, String sourceStageName, Boolean isStageChanged, StageLogEntity sourceStageLog) {
        this.targetStage = targetStage;
        this.sourceStage = sourceStage;
        this.targetStageName = targetStageName;
        this.sourceStageName = sourceStageName;
        this.isStageChanged = isStageChanged;
        this.sourceStageLog = sourceStageLog;
    }
}
